<?php
$name = !empty($_POST["name"]) ? $_POST["name"] : "";
$email = !empty($_POST["email"]) ? $_POST["email"] : "";
$username = !empty($_POST["username"]) ? $_POST["username"] : "";
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>PhpFw</title>
		<link rel="stylesheet" href="<?= $css; ?>stylesheet.css" media="screen">
		<script type="text/javascript" src="<?= $js; ?>javascript.js"></script>
	</head>

	<body>
		<div id="message" style="display: <?= ($show) ? "block": "none"; ?>;" >
			<span><?= ($show) ? $message : ""; ?></span>
		</div>

		<form action="" method="post">
			<table id="registration" class="box">
				<tr>
					<td colspan="2" class="title">Registráció</td>
				</tr>
				<tr>
					<td>Név:</td>
					<td><input type="text" name="name" value="<?= $name; ?>" autofocus></td>
				</tr>
				<tr>
					<td>E-mail cím:</td>
					<td><input type="text" name="email" value="<?= $email; ?>"></td>
				</tr>
				<tr>
					<td>Felhasználónév:</td>
					<td><input type="text" name="username" value="<?= $username; ?>"></td>
				</tr>
				<tr>
					<td>Jelszó:</td>
					<td><input type="password" name="password" value=""></td>
				</tr>
				<tr>
					<td>Jelszó megerősítése:</td>
					<td><input type="password" name="password2" value=""></td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="hidden" name="status" value="<?= substr($this->url[1], 0, 1); ?>">
						<input type="submit" name="registration" value="Regisztráció">
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>